//===============================================================================
// Microsoft patterns & practices
// Guidance Explorer Offline Client
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================



using System;

namespace GuidanceExplorer.Model
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class CommandAttribute : Attribute
    {
        #region Private members


        /// <summary>
        /// The name of the command that will be executed when the menu is selected.
        /// </summary>
        private string _commandName;

        #endregion

        public CommandAttribute(string commandName)
        {
            this._commandName = commandName;
        }


        #region Public properties


        /// <summary>
        /// The name of the command that will be executed when the menu is selected.
        /// </summary>
        public string CommandName
        {
            get { return _commandName; }
            set { _commandName = value; }
        }


        #endregion
    }

}

